package rozetka.pageObjects;

import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;


public class DescriptionOfProduct {
	WebDriver driver;
	private static final By buttonToBuy = By.xpath("/html/body/div/div[3]/div/div/div/div/div/div/div/div/div[3]/div[2]/div/div[2]/form/button");
	
	public DescriptionOfProduct(WebDriver driver) {
		this.driver = driver;
	}
	
	public void clickToPurchase(){
		driver.findElement(buttonToBuy).submit();
		driver.manage().timeouts().implicitlyWait(4, TimeUnit.SECONDS);
	}
	
}